package com.liefox.serviceedu.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author zjh
 * @Date 2021/7/23 上午 11:08
 **/
@Component
@FeignClient(name = "service-order",fallback = OrderClientImpl.class)
public interface OrderClient {
    @GetMapping("/serviceorder/order/isBuyCourse/{courseId}/{memberId}")
    public Boolean isBuyCourse(@PathVariable("courseId") String courseId,
                               @PathVariable("memberId") String memberId);

}
